package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.NursingTask;
import com.zzyl.nursing.dto.NursingTaskCancelDto;
import com.zzyl.nursing.dto.NursingTaskExecuteDto;
import com.zzyl.nursing.dto.NursingTaskExecuteResultDto;
import com.zzyl.nursing.vo.NursingTaskDetailVo;
import com.zzyl.nursing.vo.NursingTaskVo;

import java.util.List;

/**
 * 护理任务Service接口
 * 
 * @author ruoyi
 * @date 2025-08-04
 */
public interface INursingTaskService extends IService<NursingTask>
{
    /**
     * 查询护理任务
     * 
     * @param id 护理任务主键
     * @return 护理任务
     */
    public NursingTaskDetailVo selectNursingTaskById(Integer id);

    /**
     * 查询护理任务列表
     * 
     * @param nursingTask 护理任务
     * @return 护理任务集合
     */

    public IPage<NursingTaskVo> selectNursingTaskList(NursingTask nursingTask, Integer pageNum, Integer pageSize);

    /**
     * 自动生成老人护理任务
     */
    void createNursingTask();

    /**
     * 取消任务
     * @param nursingTaskCancelDto
     */
    void cacelTask(NursingTaskCancelDto nursingTaskCancelDto);

    /**
     * 执行任务
     * @param nursingTaskExecuteDto
     */
    void executeTask(NursingTaskExecuteDto nursingTaskExecuteDto);

    /**
     * 任务改期
     * @param nursingTaskExecuteDto
     */
    void updateTask(NursingTaskExecuteResultDto nursingTaskExecuteDto);
}
